package com.cf.base.sp;

import androidx.annotation.Nullable;

public class UserInfo {
    public String userName;
    public String pwd;

    public UserInfo(String userName, String pwd) {
        this.userName = userName;
        this.pwd = pwd;
    }

    @Override
    public boolean equals(@Nullable Object obj) {
        if (obj instanceof UserInfo) {
            return pwd.equals(((UserInfo) obj).pwd) && userName.equals(((UserInfo) obj).userName);
        }
        return super.equals(obj);
    }
}
